require "import"
import "android.content.Context"
import "android.os.Vibrator"
import "android.media.ToneGenerator"
import "android.media.AudioManager"
local context = activity or service
local vibrator = context.getSystemService(Context.VIBRATOR_SERVICE)
local toneGenerator = ToneGenerator(AudioManager.STREAM_NOTIFICATION, 50)
toneGenerator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200)
vibrator.vibrate(100)

a=function()
service.execute("Deslizar hacia arriba (toque directo)")
return true
end
if service.click({
{"com.whatsapp:id/voice_note_btn$100",
"%a$100",
}
})
return true
end
if service.click({
{"enviar$100",
}
})
return true
end